﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using Google.ProtocolBuffers.Descriptors;
using Google.ProtocolBuffers.FieldAccess;

namespace com.gexin.rp.sdk.dto
{
	// Token: 0x0200000A RID: 10
	[DebuggerNonUserCode]
	public sealed class PushListResult : GeneratedMessage<PushListResult, PushListResult.Builder>
	{
		// Token: 0x06000093 RID: 147 RVA: 0x00003197 File Offset: 0x00001397
		private PushListResult()
		{
		}

		// Token: 0x1700003E RID: 62
		// (get) Token: 0x06000094 RID: 148 RVA: 0x000031B1 File Offset: 0x000013B1
		public static PushListResult DefaultInstance
		{
			get
			{
				return PushListResult.defaultInstance;
			}
		}

		// Token: 0x1700003F RID: 63
		// (get) Token: 0x06000095 RID: 149 RVA: 0x000031B8 File Offset: 0x000013B8
		public override PushListResult DefaultInstanceForType
		{
			get
			{
				return PushListResult.DefaultInstance;
			}
		}

		// Token: 0x17000040 RID: 64
		// (get) Token: 0x06000096 RID: 150 RVA: 0x00002579 File Offset: 0x00000779
		protected override PushListResult ThisMessage
		{
			get
			{
				return this;
			}
		}

		// Token: 0x17000041 RID: 65
		// (get) Token: 0x06000097 RID: 151 RVA: 0x000031BF File Offset: 0x000013BF
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_PushListResult__Descriptor;
			}
		}

		// Token: 0x17000042 RID: 66
		// (get) Token: 0x06000098 RID: 152 RVA: 0x000031C6 File Offset: 0x000013C6
		protected override FieldAccessorTable<PushListResult, PushListResult.Builder> InternalFieldAccessors
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_PushListResult__FieldAccessorTable;
			}
		}

		// Token: 0x17000043 RID: 67
		// (get) Token: 0x06000099 RID: 153 RVA: 0x000031CD File Offset: 0x000013CD
		public IList<PushResult> ResultsList
		{
			get
			{
				return this.results_;
			}
		}

		// Token: 0x17000044 RID: 68
		// (get) Token: 0x0600009A RID: 154 RVA: 0x000031D5 File Offset: 0x000013D5
		public int ResultsCount
		{
			get
			{
				return this.results_.Count;
			}
		}

		// Token: 0x0600009B RID: 155 RVA: 0x000031E2 File Offset: 0x000013E2
		public PushResult GetResults(int index)
		{
			return this.results_[index];
		}

		// Token: 0x17000045 RID: 69
		// (get) Token: 0x0600009C RID: 156 RVA: 0x000031F0 File Offset: 0x000013F0
		public override bool IsInitialized
		{
			get
			{
				using (IEnumerator<PushResult> enumerator = this.ResultsList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						if (!enumerator.Current.IsInitialized)
						{
							return false;
						}
					}
				}
				return true;
			}
		}

		// Token: 0x0600009D RID: 157 RVA: 0x00003244 File Offset: 0x00001444
		public override void WriteTo(ICodedOutputStream output)
		{
			this.CalcSerializedSize();
			string[] pushListResultFieldNames = PushListResult._pushListResultFieldNames;
			if (this.results_.Count > 0)
			{
				output.WriteMessageArray<PushResult>(1, pushListResultFieldNames[0], this.results_);
			}
			this.UnknownFields.WriteTo(output);
		}

		// Token: 0x17000046 RID: 70
		// (get) Token: 0x0600009E RID: 158 RVA: 0x00003288 File Offset: 0x00001488
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				return this.CalcSerializedSize();
			}
		}

		// Token: 0x0600009F RID: 159 RVA: 0x000032A8 File Offset: 0x000014A8
		private int CalcSerializedSize()
		{
			int num = this.memoizedSerializedSize;
			if (num != -1)
			{
				return num;
			}
			num = 0;
			foreach (PushResult value in this.ResultsList)
			{
				num += CodedOutputStream.ComputeMessageSize(1, value);
			}
			num += this.UnknownFields.SerializedSize;
			this.memoizedSerializedSize = num;
			return num;
		}

		// Token: 0x060000A0 RID: 160 RVA: 0x00003320 File Offset: 0x00001520
		public static PushListResult ParseFrom(ByteString data)
		{
			return PushListResult.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x060000A1 RID: 161 RVA: 0x00003332 File Offset: 0x00001532
		public static PushListResult ParseFrom(ByteString data, ExtensionRegistry extensionRegistry)
		{
			return PushListResult.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x060000A2 RID: 162 RVA: 0x00003345 File Offset: 0x00001545
		public static PushListResult ParseFrom(byte[] data)
		{
			return PushListResult.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x060000A3 RID: 163 RVA: 0x00003357 File Offset: 0x00001557
		public static PushListResult ParseFrom(byte[] data, ExtensionRegistry extensionRegistry)
		{
			return PushListResult.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x060000A4 RID: 164 RVA: 0x0000336A File Offset: 0x0000156A
		public static PushListResult ParseFrom(Stream input)
		{
			return PushListResult.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x060000A5 RID: 165 RVA: 0x0000337C File Offset: 0x0000157C
		public static PushListResult ParseFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return PushListResult.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x060000A6 RID: 166 RVA: 0x0000338F File Offset: 0x0000158F
		public static PushListResult ParseDelimitedFrom(Stream input)
		{
			return PushListResult.CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
		}

		// Token: 0x060000A7 RID: 167 RVA: 0x000033A1 File Offset: 0x000015A1
		public static PushListResult ParseDelimitedFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return PushListResult.CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x060000A8 RID: 168 RVA: 0x000033B4 File Offset: 0x000015B4
		public static PushListResult ParseFrom(ICodedInputStream input)
		{
			return PushListResult.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x060000A9 RID: 169 RVA: 0x000033C6 File Offset: 0x000015C6
		public static PushListResult ParseFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
		{
			return PushListResult.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x060000AA RID: 170 RVA: 0x000033D9 File Offset: 0x000015D9
		private PushListResult MakeReadOnly()
		{
			this.results_.MakeReadOnly();
			return this;
		}

		// Token: 0x060000AB RID: 171 RVA: 0x000033E7 File Offset: 0x000015E7
		public static PushListResult.Builder CreateBuilder()
		{
			return new PushListResult.Builder();
		}

		// Token: 0x060000AC RID: 172 RVA: 0x000033EE File Offset: 0x000015EE
		public override PushListResult.Builder ToBuilder()
		{
			return PushListResult.CreateBuilder(this);
		}

		// Token: 0x060000AD RID: 173 RVA: 0x000033E7 File Offset: 0x000015E7
		public override PushListResult.Builder CreateBuilderForType()
		{
			return new PushListResult.Builder();
		}

		// Token: 0x060000AE RID: 174 RVA: 0x000033F6 File Offset: 0x000015F6
		public static PushListResult.Builder CreateBuilder(PushListResult prototype)
		{
			return new PushListResult.Builder(prototype);
		}

		// Token: 0x060000AF RID: 175 RVA: 0x000033FE File Offset: 0x000015FE
		static PushListResult()
		{
			FileDescriptor descriptor = GtReq.Descriptor;
		}

		// Token: 0x0400008E RID: 142
		private static readonly PushListResult defaultInstance = new PushListResult().MakeReadOnly();

		// Token: 0x0400008F RID: 143
		private static readonly string[] _pushListResultFieldNames = new string[]
		{
			"results"
		};

		// Token: 0x04000090 RID: 144
		private static readonly uint[] _pushListResultFieldTags = new uint[]
		{
			10u
		};

		// Token: 0x04000091 RID: 145
		public const int ResultsFieldNumber = 1;

		// Token: 0x04000092 RID: 146
		private PopsicleList<PushResult> results_ = new PopsicleList<PushResult>();

		// Token: 0x04000093 RID: 147
		private int memoizedSerializedSize = -1;

		// Token: 0x02000055 RID: 85
		[DebuggerNonUserCode]
		public sealed class Builder : GeneratedBuilder<PushListResult, PushListResult.Builder>
		{
			// Token: 0x1700029B RID: 667
			// (get) Token: 0x06000638 RID: 1592 RVA: 0x00002579 File Offset: 0x00000779
			protected override PushListResult.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}

			// Token: 0x06000639 RID: 1593 RVA: 0x0000ED34 File Offset: 0x0000CF34
			public Builder()
			{
				this.result = PushListResult.DefaultInstance;
				this.resultIsReadOnly = true;
			}

			// Token: 0x0600063A RID: 1594 RVA: 0x0000ED4E File Offset: 0x0000CF4E
			internal Builder(PushListResult cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}

			// Token: 0x0600063B RID: 1595 RVA: 0x0000ED64 File Offset: 0x0000CF64
			private PushListResult PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					PushListResult other = this.result;
					this.result = new PushListResult();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}

			// Token: 0x1700029C RID: 668
			// (get) Token: 0x0600063C RID: 1596 RVA: 0x0000EDA0 File Offset: 0x0000CFA0
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}

			// Token: 0x1700029D RID: 669
			// (get) Token: 0x0600063D RID: 1597 RVA: 0x0000EDAD File Offset: 0x0000CFAD
			protected override PushListResult MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}

			// Token: 0x0600063E RID: 1598 RVA: 0x0000EDB5 File Offset: 0x0000CFB5
			public override PushListResult.Builder Clear()
			{
				this.result = PushListResult.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}

			// Token: 0x0600063F RID: 1599 RVA: 0x0000EDCA File Offset: 0x0000CFCA
			public override PushListResult.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new PushListResult.Builder(this.result);
				}
				return new PushListResult.Builder().MergeFrom(this.result);
			}

			// Token: 0x1700029E RID: 670
			// (get) Token: 0x06000640 RID: 1600 RVA: 0x0000EDF0 File Offset: 0x0000CFF0
			public override MessageDescriptor DescriptorForType
			{
				get
				{
					return PushListResult.Descriptor;
				}
			}

			// Token: 0x1700029F RID: 671
			// (get) Token: 0x06000641 RID: 1601 RVA: 0x000031B8 File Offset: 0x000013B8
			public override PushListResult DefaultInstanceForType
			{
				get
				{
					return PushListResult.DefaultInstance;
				}
			}

			// Token: 0x06000642 RID: 1602 RVA: 0x0000EDF7 File Offset: 0x0000CFF7
			public override PushListResult BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}

			// Token: 0x06000643 RID: 1603 RVA: 0x0000EE1A File Offset: 0x0000D01A
			public override PushListResult.Builder MergeFrom(IMessage other)
			{
				if (other is PushListResult)
				{
					return this.MergeFrom((PushListResult)other);
				}
				base.MergeFrom(other);
				return this;
			}

			// Token: 0x06000644 RID: 1604 RVA: 0x0000EE3C File Offset: 0x0000D03C
			public override PushListResult.Builder MergeFrom(PushListResult other)
			{
				if (other == PushListResult.DefaultInstance)
				{
					return this;
				}
				this.PrepareBuilder();
				if (other.results_.Count != 0)
				{
					this.result.results_.Add(other.results_);
				}
				this.MergeUnknownFields(other.UnknownFields);
				return this;
			}

			// Token: 0x06000645 RID: 1605 RVA: 0x0000EE8B File Offset: 0x0000D08B
			public override PushListResult.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}

			// Token: 0x06000646 RID: 1606 RVA: 0x0000EE9C File Offset: 0x0000D09C
			public override PushListResult.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				UnknownFieldSet.Builder builder = null;
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(PushListResult._pushListResultFieldNames, text, StringComparer.Ordinal);
						if (num2 < 0)
						{
							if (builder == null)
							{
								builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
							}
							this.ParseUnknownField(input, builder, extensionRegistry, num, text);
							continue;
						}
						num = PushListResult._pushListResultFieldTags[num2];
					}
					if (num == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num != 10u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							if (builder != null)
							{
								this.UnknownFields = builder.Build();
							}
							return this;
						}
						if (builder == null)
						{
							builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
						}
						this.ParseUnknownField(input, builder, extensionRegistry, num, text);
					}
					else
					{
						input.ReadMessageArray<PushResult>(num, text, this.result.results_, PushResult.DefaultInstance, extensionRegistry);
					}
				}
				if (builder != null)
				{
					this.UnknownFields = builder.Build();
				}
				return this;
			}

			// Token: 0x170002A0 RID: 672
			// (get) Token: 0x06000647 RID: 1607 RVA: 0x0000EF77 File Offset: 0x0000D177
			public IPopsicleList<PushResult> ResultsList
			{
				get
				{
					return this.PrepareBuilder().results_;
				}
			}

			// Token: 0x170002A1 RID: 673
			// (get) Token: 0x06000648 RID: 1608 RVA: 0x0000EF84 File Offset: 0x0000D184
			public int ResultsCount
			{
				get
				{
					return this.result.ResultsCount;
				}
			}

			// Token: 0x06000649 RID: 1609 RVA: 0x0000EF91 File Offset: 0x0000D191
			public PushResult GetResults(int index)
			{
				return this.result.GetResults(index);
			}

			// Token: 0x0600064A RID: 1610 RVA: 0x0000EF9F File Offset: 0x0000D19F
			public PushListResult.Builder SetResults(int index, PushResult value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.results_[index] = value;
				return this;
			}

			// Token: 0x0600064B RID: 1611 RVA: 0x0000EFC6 File Offset: 0x0000D1C6
			public PushListResult.Builder SetResults(int index, PushResult.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.results_[index] = builderForValue.Build();
				return this;
			}

			// Token: 0x0600064C RID: 1612 RVA: 0x0000EFF2 File Offset: 0x0000D1F2
			public PushListResult.Builder AddResults(PushResult value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.results_.Add(value);
				return this;
			}

			// Token: 0x0600064D RID: 1613 RVA: 0x0000F018 File Offset: 0x0000D218
			public PushListResult.Builder AddResults(PushResult.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.results_.Add(builderForValue.Build());
				return this;
			}

			// Token: 0x0600064E RID: 1614 RVA: 0x0000F043 File Offset: 0x0000D243
			public PushListResult.Builder AddRangeResults(IEnumerable<PushResult> values)
			{
				this.PrepareBuilder();
				this.result.results_.Add(values);
				return this;
			}

			// Token: 0x0600064F RID: 1615 RVA: 0x0000F05E File Offset: 0x0000D25E
			public PushListResult.Builder ClearResults()
			{
				this.PrepareBuilder();
				this.result.results_.Clear();
				return this;
			}

			// Token: 0x04000343 RID: 835
			private bool resultIsReadOnly;

			// Token: 0x04000344 RID: 836
			private PushListResult result;
		}
	}
}
